determine if the functions are inverses